package com.hunk.excel.replaceMethod;

import java.lang.reflect.Method;
import org.springframework.beans.factory.support.MethodReplacer;
import org.springframework.stereotype.Component;

import com.hunk.utils.CommonUtils;
/** ID生成方法对应类
 * @author Dengyx
 * 利用spring3.0的method replace方式替换id生成方法
 */
@Component("import_Id")
public class Import_Id implements MethodReplacer {
	
	@Override
	public Object reimplement(Object obj, Method method, Object[] args)
			throws Throwable {
		return CommonUtils.generateUUID();
	}
}
